<li>
	<h3 class="courseTitle">
		<span class="courseType"><?php echo $course['CourseType']['type'];?></span>
		<?php echo $this->Html->link($course['Course']['title'], array('controller' => 'course', 'action' => 'view', $course['Course']['id']), array());?>
	</h3>
	<a class="image" href="<?php echo $this->Html->url(array('controller' => 'course', 'action' => 'view', $course['Course']['id']), array());?>">
		<?php echo $this->Html->image($course['Course']['course_image01'] ? Configure::read('Course.upload_path_prefix').$course['Course']['course_image01'] : 'demoCourse.jpg', array('alt' => ''));?>
		<?php if (isset($categoryConfig[$course['Category']['rank']]['image'])):?>
		<?php echo $this->Html->image($categoryConfig[$course['Category']['rank']]['image'], array('border' => '0', 'alt' => '', 'class' => 'category'));?>
		<?php else:?>
		<?php echo $this->Html->image('icon_01.png', array('border' => '0', 'alt' => '', 'class' => 'category'));?>
		<?php endif;?>
	</a>
	<?php if ($avatar = $course['Profile']['icon_image']):?>
	<?php
	echo $this->Html->link(
		$this->Html->image(Configure::read('User.upload_path_prefix') . $avatar, array('alt' => '', 'width' => 50, 'height' => 50)),
		array('controller' => 'profile', 'action' => 'view', $course['Course']['user_id']),
		array('class' => 'teacherAvatar', 'escape' => false)
	);
	?>
	<?php else:?>
	<?php
	echo $this->Html->link(
		$this->Html->image('icon.jpg', array('alt' => '', 'width' => 50, 'height' => 50)),
		array('controller' => 'profile', 'action' => 'view', $course['Course']['user_id']),
		array('class' => 'teacherAvatar', 'escape' => false)
	);
	?>
	<?php endif;?>
	<?php $courseId = $course['Course']['id'];?>
	<dl class="detail">
		<dd>日時:</dd>
		<dt>
		<?php if (isset($details[$courseId]) && $detail = $details[$courseId]):?>
			<?php echo $this->Time->format('Y.m.d', $detail['CourseDetail']['opening_date']);?>
		<?php else:?>
			未定
		<?php endif;?>
		</dt>
		<dd>場所:</dd>
		<dt>
		<?php if (isset($details[$courseId]) && $detail = $details[$courseId]):?>
			<?php echo $detail['Area']['name'] ? $detail['Area']['name'] : $course['Area']['name'];?>
		<?php else:?>
			未定
		<?php endif;?>
		</dt>
		<dd>講師:</dd>
		<dt>
			<a href="<?php echo $this->Html->url(array('controller' => 'profile', 'action' => 'view', $course['Course']['user_id']));?>">
			<?php echo $this->User->getUsername($course);?>
			</a>
		</dt>
	</dl>
	<p class="description"><?php echo $course['Course']['description'];?></p>
</li>